import request from '@/utils/request'

// 查询终端管理列表
export function listWireless(query) {
  return request({
    url: '/mk/wireless/list',
    method: 'get',
    params: query
  })
}

// 查询终端管理详细
export function getWireless(id) {
  return request({
    url: '/mk/wireless/' + id,
    method: 'get'
  })
}

// 新增终端管理
export function addWireless(data) {
  return request({
    url: '/mk/wireless',
    method: 'post',
    data: data
  })
}

// 修改终端管理
export function updateWireless(data) {
  return request({
    url: '/mk/wireless',
    method: 'put',
    data: data
  })
}

// 删除终端管理
export function delWireless(id) {
  return request({
    url: '/mk/wireless/' + id,
    method: 'delete'
  })
}

// 导出终端管理
export function exportWireless(query) {
  return request({
    url: '/mk/wireless/export',
    method: 'get',
    params: query
  })
}